// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import 'common/sass/index.scss'
// import 'hotcss'
import router from './router'
import * as request from './api/index'
import components from './plugins/components.js'
import  { ToastPlugin,LoadingPlugin } from 'vux'
// import Vant from 'vant'
import 'vant/lib/index.css'

Vue.use(ToastPlugin)
Vue.use(LoadingPlugin)
Vue.use(components)
// Vue.use(Vant)

Vue.config.productionTip = false
Vue.prototype.$api = request

//调用flexible
import 'common/js/rem.js'
import 'common/js/vux.js'
import 'common/js/utils.js'

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
